package com.wbs.base.exception;

public class DomainException extends Exception {

    private static final long serialVersionUID = 658577938414117784L;

    private String code;
    private String message;
    private Exception rootCause;
    private String fileName;
    private String configId;

    public DomainException(String message) {
        super(message);
        this.message = message;
    }

    public DomainException(Exception rootCause) {
        this.rootCause = rootCause;
        this.message = rootCause.getMessage();
    }

    public DomainException(String message, Exception rootCause) {
        
        super(message, rootCause);
        this.message = message;
        this.rootCause = rootCause;
    } 

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Exception getRootCause() {
        return rootCause;
    }

    public void setRootCause(Exception rootCause) {
        this.rootCause = rootCause;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getConfigId() {
        return configId;
    }

    public void setConfigId(String configId) {
        this.configId = configId;
    }

}